package com.heu.blood.storge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.match.entity.BloodInformationEntity;
import com.heu.blood.storge.entity.BloodBackEntity;

import java.util.Map;

/**
 * 
 *
 * @author 
 * @email 
 * @date 2023-11-21 17:24:01
 */
public interface BloodBackService extends IService<BloodBackEntity> {

    PageUtils queryPage(Map<String, Object> params);


    //将血液信息表转变为血液退血表
    BloodBackEntity convertBloodInformationToBloodBackEntity(BloodInformationEntity bloodInformationEntity);

    //根据血液id添加退血表中字段退血原因
    void simpleUpdateBloodBackReasonByBloodId(String bloodId, String bloodBackReason);

    void bloodBackByBloodId(BloodBackEntity bloodBack);

    BloodBackEntity selectByBloodId(String tradeId);
}

